<template>
  <div id="app">
    <router-view />
  </div>
</template> 

<script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_1279388672'%3E%3C/span%3E%3Cscript src='https://s9.cnzz.com/stat.php%3Fid%3D1279388672' type='text/javascript'%3E%3C/script%3E"));</script>
<script>
export default  {
  name:  'App',
  // mounted() {  
  //    // 创建cnzz统计js
  //   const script = document.createElement('script')
  //   script.src = 'http://s9.cnzz.com/z_stat.php?id=1279388672&web_id=1279388672'
  //   script.language = 'JavaScript'
  //   document.body.appendChild(script)
  // },
  // watch: {
  //   '$route': {
  //     handler(to, from) {
  //       setTimeout(() => { //避免首次获取不到window._czc
  //         if (window._czc) {
  //           let location = window.location;
  //           let contentUrl = location.pathname + location.hash;
  //           let refererUrl = '/';
  //           // 用于发送某个URL的PV统计请求，
  //           window._czc.push(['_trackPageview', contentUrl, refererUrl])
  //           window._czc.push(["_setAutoPageview", false]);
  //         }
  //       }, 300)
  //     },
  //     immediate: true  // 首次进入页面即执行
  //   }
  // }
}
</script>
